fixed doublicate key issue with categories

see https://github.com/zikula/core/pull/1566