fixed iterator invalidation in console_command processing

3 jobs for develop in 13 minutes and 11 seconds (queued for 3 seconds)
Status Name Job ID Coverage
  Build
passed build-clang #8406

00:03:06

passed build-gcc #8405

00:03:45

passed build-scanbuild #8407

00:06:19