Fix android crash when model detects nothing
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17119
Reviewed By: sf-wind
Differential Revision: D14087835
Pulled By: ZhizhenQin
fbshipit-source-id: 32e61d46679bae645fd0bbec724513cfa5c553ab