Small bug fix / additional check

ModalBox: mini bugfix - checking for element to focus()