Fixed error checking in Patient_Update.py