Villagers Are GREEDY!
they pick up food even if they don't need any at night in their bed. I mean they just go
around the food and don't pick it up!
I think that there is an "if()" missing in their program and that is they always have to
check if they need any food or not. if they do, then they can pick them all up.
I have rendered a video that shows how i triggered this bug and I uploaded it in Dropbox.
Here is the link:
https://www.dropbox.com/s/zmm9p1v2d76fu7k/the%20greedy%20villager.mp4?dl=0
Perhaps MC-154427 describes your issue?