Two companies have been fined for safety failings after the director of one company fell through a skylight at the other company’s site.