It is very unlikely that this story is anything more than a fanciful tale: The dedicatee of the piece is unknown; the work was found in papers long after Beethoven's death and was unknown before that. So, the prospect of there being someone who was told the story and wrote it down, even though it's recorded nowhere is close to nil. See the Wikipedia article for more details.