Fixes the empty repo check.