git-prompt: fix code for no-op func when git-prompt not found