Fix to also work with "newer" Redmine versions.

Tested with Redmine version 2.4