Add check for empty String for the local directory in addition to null and add logging.

This PR contains:
Add check for empty String for the local directory in addition to null.
Add logging to detect why return null.
Yes, and it also should never be null I suppose? 
This check prevent things by reporting that somehow `userTempFolder` is returned empty/blank or null just in case bad configuration.