3.0 fix notnull

Fixes #3836
It definitely can, but I wanted to explicitly test that the quotes are there, otherwise it would just test that it could be "optionally" quoted