Fix to bug

Bug was occurring when a child collection had an attribute referring to the current collection where the child attribute name was different than the child attribute column name. childAttribute becomes null in this case and everything else explodes from there.