Fixed ngResource parameter substitution issue when leading slash is removed incorrectly.