Don't claim to have hints if the current context is not property name or property value.

This fixes issue #2716.