Issue #2301215 by rsmylski, Rob C, joelpittet: PHP Notice Trying to get property of non-object in views_alter hook