Fix possible out of bound exception
Osmodroid