[minor] Fixing a callback case to properly return err