Unify null comparisons

| Q             | A
| ------------- | ---
| Fixed tickets | -
| License       | MIT
You won't catch undefined with this check. `null == savedState` <=> `null === savedState || undefined === savedState`.

Not sure if this was intended here.