Safely handle a condition where attempts to find the home directory of a user (for user defined templates) fails.