Fixed optional geoprogress callback

Hi,

If we follow the readme sample the code would raise errors because the options is passed as third argument, when it actually should be the geoprogress callback. I've added a small check for those parameters in order to have them behave correctly in case of geoprogress not being informed but options do. (needs some testing tou)

Cheers,

Eric