Don't call rebuildEngineMenu() with null arguments.