Bug fix: handling empty error array
Merge branch 'master' of https://github.com/OPENi-ict/type-api