Fix to also work with "newer" Redmine versions.

Tested with Redmine version 2.4
Merge pull request #3 from gklingler/master

Fix to also work with "newer" Redmine versions.