Fixes a bug where the autofocus on the customer search input generated an exception and did not apply the focus correctly after navigating in the UI.