Salesforce mapping module throws error : [error] Call to a member function id() on null