Fixes NPE when webapp doesn't exist.