chore(Gruntfile): update ci tasks
change some Errors to TypeErrors
callback with TypeError in getById() when id is of wrong type