Catch missing head commit

It's missing on a delete request