Fix bug when empty array is sent to update.
Empty array json to test bug