fixed hydroshare_serialize_science_metadata_xml so that it doesnt crash on non JSON input