Supermarket chain Tesco has been fined after health and safety breaches led to a worker falling through a skylight.