Fix crash when inserting a new task in review mode