Bug 79704: NPE fix

Instead of throwing a NPE, we now output the appropriate error message that a result file is empty.  Refactoring of variable name a to action.