Fixed issue with login (loadState) before PL API Key was set.