Issue #2099717 by Peacog, derekw: Trying to get property of non-object in context_entity_prepare_view()