Fix/work package special reports

Fixes the issue described here: https://www.openproject.org/issues/2756.