I removed the code you marked. So if you will look the marked code should not longer appear. But the same error occurs.
First the map is showing. And then there is a short scrolling effect and the map disappears behind the error message. May be the error is related with the scrolling effect. I don’t know.