CRM-15047 Fix for Attempting to record ANY contribution throws a fatal e...

Made changes to handle fatal error related record contribution for contact.