issue #1346796 by peteruithoven: check if the #node key is set in the hook_form_alter() to avoid php warnings.