Move null selection check outside worldedit-specific code block