Changes error checking when storing data in Synapse