Slicer custom app crashing with --testing arg

For the record this is a ticket about the same problem in the GitHub repo: Python automated tests crash · Issue #23 · KitwareMedical/SlicerCustomAppTemplate · GitHub