fix null pointer deref on empty nameref assignment (no ‘=’)
found by Goodbox on IRC