NPE if a previous focus owner is null.
(cherry picked from commit 0529ff5)