Fixed a bug when loading patients where the loaded patient would sometimes overwrite an existing patient.