Added null check before detach since some objects are available only for different payment types
Merge pull request #23 from immersivelabs/fix/null-check

[RFC] added null check