IDEX-727 fix NPE when resetting project type