Debug IP address parameter

Added a debug IP Address to be used when working locally for example.
Also handled a PHP warning in case nothing was returned by getFreegeoip() function