Base: allow args to custom commands
IE: make sure container is not undefined before calling tagName
Editor: defend against no selection