am accf3bff: Fix NPE when rotating with widget frame visible (issue 6391782)

* commit 'accf3bffedc736c04034bfee8e1a8e4fe775f568':
  Fix NPE when rotating with widget frame visible (issue 6391782)