Web: Fix nesting of commands (bug introduced in d8a4ef84214).