Added NoneType checks for list based entities in from_obj