fixed up null pointer error when viewing location of an encounter