Anything that you consume that "heals" hp will hurt undead. Using bedroll is for "resting" is not a contradiction or a consumption. Definitely not a bug.