Check that hammer instance is valid before calling dispose during view teardown.