Object Builder Fixes

Resolved 2 bugs 

1.	Base classes which doesn’t have custom_data field still tried to buildPkCriteria with the Custom_data md5 (and Fatal-ed out)
2.	When a partner had custom_data = NULL query failed (it md5(null) instead of going to the ‘else’ part)