Rescue invalid ip address exceptions on assign.

In order that set attribute should not be bang method
Merge pull request #11574 from jetthoughts/11552_rescue_on_invalid_inet_assign

Fix assign ip address with invalid values raise exception