Handle DoesNotExist (and others)

getattr(model, element, None) can raise a related.model.DoesNotExist. Better to return None.