Use `Array.isArray` instead of `instanceof Array`


Thanks @myabc for the advice
Merge branch 'feature/angular-api-work-package-loading' of github.com:opf/openproject into feature/angular-api-work-package-loading