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