check if path is actually in list at BufDelete

Fixes a bug that was introduced by the previous commit: 610c36c