Fix an error on assignment with modifier if in VariableInspector

This fixes #483.