Update angular-mocks.js

Avoid "No more request expected" errors on legal tests wih no definitions, by checking definitions.length to be > 0 before throwing new Error