Fixed NPE when viewing encounter submitted with form that is no longer registered with FormManager