focus: "none" raises an error

When the focus parameter is set to "none" (as described in the documentation), an error is raised.

This is caused by calling the focus method on the value "false".