A company who produces cakes and pastries has been fined after a worker lost part of her finger in a pie and tart machine.