Fix bug when injecting $location.

Fixes #21