Simplified #ref_to_sha! implementation to remove empty rescue clause.

Simplified #ref_to_sha! implementation to remove empty rescue clause for catching Grit::GitRuby::Repository::NoSuchShaFound. Now returns nil on failure.