[NUI] Fix ICustomFocusAlgorithm exception (#1182)