Prevent NPE for no-replica task