Catch NullPointerException in #find when sha is nil and return nil.