Followup 166a52b: unbreak tools that don't have commands

As a bonus I tried to replace the usage of .static.commandName
with .static.getCommandName(), but it turns out MWPopupTool
subclasses OO.ui.PopupTool, which is not a ve.ui.Tool
so it doesn't have that method. GRRRRR

Bug: T75946
Change-Id: I4f17168ecaf70ce4d7cd175bf18319652ad7bc62
Merge "Followup 166a52b: unbreak tools that don't have commands"