fixing for redmine 2.4 compatability - courtesy of Jonny S

This will fix the plugin so that it _should_ work with redmine 2.4.*