Fixes NPE from resolveRotation()

RotatatinResolverInternal can be null when the service is not ready.
This change adds a null check to avoid NPE.

Test: atest WindowOrientatinListenerTest
Bug: 199375757
Bug: 199381926

Change-Id: I1b6f3aee3eddf8f565f7ca21b1879f40c36f4e5c
(cherry picked from commit 835f63f972aa96945f518d139456cf794d041ca0)
2 files changed