Fixed error displaying update dialog in Android