Fixed bug introduced in my last commit

- Changing the == null check to === revealed that the value wasn't
really null, but rather undefined or similar.
- UI does now throw an error message in the users face only once.