Explicitly check for a property name right after an opening brace.

This fixes issue #3448.