Don't throw an error when HEAD is detached (closes #6).