Added null check for focusedElement not being conneted to a presentation source.