Fixed script error if player hasn't any media