Adding a latte shouldn't require opening the replicator. That's the Open-Closed Principle, and the holodeck safety protocols going offline is what happens when a design ignores it.