Adding GPS search timeout.

We need an timeout if the device cannot find any GPS position. This
should not happend but it does on some devices. Adding this code will
prevent does devices from crashing when no GPS pos is found.