appview: state: verify if commit is a valid hash before fetching
Fixes a crash when viewing a single commit, and possibly appending something like `.patch` to the end of it. The `result` from the knotserver is nil and then leads to a nil pointer deref later.
authored by
anirudh.fi
and committed by