support null location in encounter.jsp