Added exception handling: Use IP or fixed position if location for url param was not found