catch weird KeyError, LPG-39

This is to partially address LPG-39 https://jira.slac.stanford.edu/browse/LPG-39 and to catch the root cause by encapsulating the call in a  Try & Raise block. If cleanLogicalDirectory throws this error, it *will* return IS_OK=False, i.e. the job will be botched.