Allow defaultObject method to return null.