Work around optional-argument bug with updateSelection

Closes #2725