Adding empty object element to array was broken