object() returns undefined when a child element is unsubmittable

This patch makes sure the ```ret``` object is preserved