Do not openInputStream twice without closing
am: 25dcb3a1b1

Change-Id: Iaf9d2921f92338bce61afbbd0e6849136f403d86