Just updated this to Block.BED.id.  Upon further thought, I'm trying to duplicate as close as possible to what is in EntityHuman.getBed and that uses Block.BED.id.  I debated even trying to use nms.World.getTypeId also, but then that'd be recasting to CraftWorld and and changing more than necessary at this point I suppose.