CMS-3753: Add portal instance key to error logging of data sources. - Done!
CMS-3753: Add portal instance key to error logging of data sources. - Added NULL checking, just to be sure.