[1.7.x] Fixed #23855 -- Removed unnecessary all() in tutorial 3.

Backport of 8fce7978307058f9bc7d9f815858f27fdd954409 from master