Fix for pushing too many states to history.
Merge branch 'norgeskart' of https://github.com/kartverket/anathem into norgeskart