ticket:26 Fix IntegrityError if no ip