Fix 500 error. (rails 3.2+, redmine 2.3.3+)