Fixed wrong return statement, closes #756.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | --
| Fixed tickets | #756
| License       | MIT
| Doc PR        | --

This bug came at Zikula 1.3.6, so this needs no changelog.