Fixed error made in https://github.com/zikula/core/commit/8a5346d53624e3e6f0e2278b528b48ec88d102bd#diff-78d3efc381b4e86b333f5ec1ac95f747, closes #1254