adding simple check for patient_id existence in params and not 500
fixing bad style
Merge pull request #22 from dimagi/patient_check

adding simple check for patient_id existence in params and not 500