Yorick q used when blinded.
When I was blinded by an ability, in this case it was teemo's blinding dart, if i had used my q on Yorick it would be consumed while not dealing damage. When playing a champion such as Jax, if you use his w and are blinded the w is not consumed when you attempt to make an auto attack.
To recreate this bug play yorick against a champion with a blinding spell, once you are blinded use your q and auto a minion or champion, and your q will go on cooldown while not dealing any damage.