Fixed variable naming

Changed $app into $this since this is used in the other helpers as well and $app is not available inside a console command.

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3+
| Fixed tickets | -