It appears to be possible for the debug port to open without any tabs, so we should handle that.