Revert "Some validations for empty objects."

This reverts commit 0cb71dae7aca4b61cf5ce2f499014775d174e535.
Fix POSL traversing order.