Handling cases when a versioned m2m or o2m is not defined

This modification is needed for the __get__ method to handle properly when we are getting the value of a m2m or o2m when this one is not given any value (it is None).