Fixes NPE in content edit page when template isn't available.