MYLOC-86 preferred_location.set calls error callback if this.api is undefined.
Merge pull request #24 from BBC-Location-Services/86_preferred_api

MYLOC-86 preferred_location.set calls error callback if this.api is unde...