Do not crash adding ranges when public IP address is not yet set
Merge pull request #1412 from Zentyal/ejhernandez/bug-1210

Do not crash adding ranges when public IP address is not yet set