Update methods.py


If user doesn't adds any location in the map, then code was giving error; which is resolved!