This will throw if some addon has left the value in a broken state - should protect against that too.