[Fix]: AutocompleteWidget functional for patient module

Might ignore the newlines :)
Main issue is --> While creating a patient, person widget gave a js error (data.push is not a function).
This was because the data variable was full html response(string) instead of a JSON as expected for data.push