Null checks for _mediaElement in handlers.