Improved error handling of missing family attr

Previously, an unhandled exception was thrown when trying to add a
prefix from a pool with the "family" attribute set to None. This was
something pynipap could help the user with, as neither it handled a
missing "family" attribute. This has now been improved :)