Fixed focus: "none"

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