added a null cast to binary_to_number for the case when json_to_station/1 does not obtain some fields