[#8449] Fix errors mentioned by JSHint

https://github.com/opf/openproject/pull/1405