GitHub issue #1: Avoid NullPointerException when checking webapp root