repo: Fix crash without SELinux policy enabled during commit