Salesforce: Attempt to de-reference a null object error .. when inerting new object with recordtype