Fixed potential NRE while measuring controls when no MediaItem has been set before