GetDefaultPaymentProfile() returns NULL when called on payment profiles
returned by a call to customerProfile->getPaymentProfiles(). It should
return 1 or 0 (true/false). The script attached at the bottom of this
post reproduces the problem. Copy it ...