Fixed bug that caused the API to lock up if a subobject didn't contain anything.