Fix for a crash in incremental templates when promise resolves to null