[fixed] Warning caused by trying to focus null element
closes #11