Changed apiKey to be returned as "" instead of "undefined" when not provided dying construction.