ISIS-872: trivial formatting changes to simpleapp classes.
ISIS-643: speculative fix to add a guard to an NPE if post delete processing.

... based, unfortunately, only on the supplied stacktrace and a bit of guesswork, since no reproducible case available.