Fixed runtime exception in platform-medical-records

Change-Id: I6ab6cef14388d1b40d382768833ed98a87cdac90