In the past it happened with directories created inside .emacs.d/, though I don't remember the specifics. As for the one I reported, the lisp code silences the error, which makes realizing the problem a bit harder.