Fixed error handling, added test, fixed line-ending issues in tests

fixes https://github.com/SAP/grunt-openui5/issues/9