Check product exists before accessing methods

To avoid fatal errors when generating renewal orders in Subscriptions.
Merge pull request #4902 from thenbrent/master

Check product exists before accessing methods when sending order email
Merge remote-tracking branch 'upstream/master' into upstream-master