commit: fix empty commit creation when there's no changes but ita entries