Fixed problem with fetching dirty HEAD with Git fetcher.

Check for dirty was places before check for head, ended up in unreachable code.