Fix error for filtering objects by status
Add check in method castJsonElementValueAccordingFieldType if the method is called with null DbDataObject.
Add check in method castJsonElementValueAccordingFieldType if the method is called with null DbDataObject.