don't crash in ShowFrameRate() if w is NULL