Fixed bug reported via RT (RT#91176)

Duplicated entries when used in conjunction with D:P:AJAX