correct quick-clone where initBranch is null

should fix #477
Merge pull request #479 from pmiossec/fix_quickclone

correct quick-clone where initBranch is null