Changed warning to notice for acces on non-object

Fixes: #1905

This is similar to #1949. I don't get bad tests for current master.