Fix compatibility with redmine >= 2.4