Handle missing head more gracefully
Bump version to 0.5.2