I was on a surface from another mod, that i disabled. I was returned to Nauvis just fine, but few sec. later i got the following bug:
Error while running event platform-map-update::on_player_changed_surface (ID 55) platform-map-update/control.lua:2: attempt to compare number with nil
stack traceback: platform-map-update/control.lua:2: in function <platform-map-update/control.lua:1>
So sorry about that, I misread the documentation and confused 'nil' and '0'.
I've fixed it now, and tested that it it no longer crashes when a surface is deleted.