ignore openPopup if map not initialized, close #2343