Actually Jaime the most widely accepted origin of the phrase is this, "The term originates from the practice of men using imaginary dogs as an excuse for hanging around in the bushes."
And that's the version I knew even before I double checked on wikipedia
Not once have I heard your version :/