fix(Angular.js): don't crash on invalid query parameters