[git] fixed undefined check for maxCount number
[git] fixed undefined check for maxCount number

Signed-off-by: Anton Kosiakov <93305abb4fd19156b2366e8285c439930563a735@typefox.io>

epatpol/theia-1,epatpol/theia-1,epatpol/theia-1