Removes complication in onMediaDataLoaded if hasActiveMedia is false.

With this change, the complication is removed for the following cases:
  1. When the media app is removed from Recents screen.
     - Notes:
       - This doesn't trigger onMediaDataRemoved, but it causes the
       media to become inactive.
       - This also causes the mediaHost view to become invisible.
  2. When the user swipes to dismiss the UMO on Keyguard.
     - This also causes the media to become inactive.

Bug: 242613318
Test: manually on device
Test: atest MediaDreamSentinelTest
Change-Id: Iedd7ed264e62306b2e34f6f798259176591039ec
2 files changed