Trap errors when provider definition doesn't exist.