Fix a crash reported by rageshake
Fix a crash reported by rageshake

vector-im/riot-android,vector-im/riot-android,vector-im/vector-android,vector-im/riot-android,vector-im/vector-android,vector-im/vector-android,vector-im/vector-android,vector-im/riot-android,vector-im/riot-android