Attempting to access a property on a non-object now throws a

notice instead of a warning.

This fixes issue #1905