Project.pm: validate new HEAD setting