Crash when pressing = on lua calculator after syntax error

Issue #2476 resolved
Daniel created an issue

Steps to reproduce:

  1. Enable lua module
  2. Open the calculator
  3. Throw a syntax error, by for example entering "." and then pressing "="
  4. Press "=" again
  5. Watch the camera fail