Make View->shouldEmitHooks more robust