WICKET-5564 AjaxRequestTarget.focusComponent() does not work when two Ajax responses arrive next to each other

Minor simplifications:
- use local variable for namespaced lookups
- simplify checks for truty values
- fix typos

(cherry picked from commit 37a8413dead0a344f7fbb03bd6c2b83cf84dce9a)