Fix stream not being closed on all exception paths

For Dex.loadFrom(), I've moved the responsibility to close the
stream out of the method, which is a little bit more boilerplate
but seemed less confusing.

Bug: 28189207
Change-Id: I9cc0d09b102cc1e9990c9834a7d06451450a592d
1 file changed