HAL-505: Fix JSON encoding when last AutoBean attribute is transient / undefined