Fixed issue in visit history modal which cause null values in the medicines prescribed table