Fixed an issue with default params: http://stackoverflow.com/questions/26529565/angular-ui-router-resolve-optional-parameter/26530367#26530367