Changing the name of a variable breaks Hub Variables page

Platform Version: 2.4.3.137
Hardware Version: C7

When changing the name of a variable in Hub Variables, the next time you visit Hub Variables this error occurs:

An unexpected error has occurred trying to load the app. Check Logs for more information.

Error: Cannot get property 'type' on null object

Logs show an NPE:
java.lang.NullPointerException: Cannot get property 'type' on null object on line 222 (method hubVar)