Issue #1919872 by DanChadwick: Skip hook_node_view() if webform is not rendering a form for a view mode.