Skulls placed on walls don't drop item when broken, when placed on ground they drop their item.
This behavior does not happen in Vanilla.
Before breaking:
After breaking: