If headHash is empty, app won't crash