Added check in updateRecord to remove serializedRecord on undefined/null belongsTo relationships