Do not leak a TypedArray instance

Change-Id: Ifea85ed88b7054af7b7f8c36ab90cdf9fca36597
GitHub: https://github.com/wikimedia/apps-android-commons/pull/26