(Bug 45401) Fix crash in older versions of Android