Bug #3406 - Check if media URL is an array earlier in Media JSON setter