Fix Harmony's generateCertificates for empty input

The docs say that if an InputStream does not have any certificates, it
will return an empty collection.

Change-Id: I470c05c097de6c3fa80571294b31cf7ffd10f003
2 files changed