A court has fined a daycare for safety breaches after a two-year-old boy was found unresponsive during a nap in 2022.