How to fix Notice: Trying to get property of non-object in contemplate_preprocess_node() (line 922