Fix broken reporting of "assignment to globals" error

For example, against imvu/northstar@fd8a7d9