handle bad remote_addr

I had it happen on my production server that a remote_addr of "unknown" came through and resulted in SystemError when it tried to save to database.  This branch will fix that.