Fix 500 error on missing modal nodes #1474