CRM-14758 fix - API ( contact, create ) does not always create related membership

https://issues.civicrm.org/jira/browse/CRM-14758
minor fix
Merge pull request #3603 from monishdeb/CRM-14758

w.r.t. 44 fix https://github.com/civicrm/civicrm-core/pull/3623