Small fixes

1) IndexOutofBounds in Calculations getMiles
2) get parent result code to prevent setting to 0 in onActivityResult
Merge remote-tracking branch 'origin/master' into Non-fuel-dependent_Release_version