Changing the null-coalesce operator to a short-hand ternary as suggested by Luke.Leber
requested to merge issue/media_library_form_element-3341978:3341978-typeerror-explode-argument into 2.x
Closes #3341978 by only performing the explode()
if the subject is an array. As suggested by Luke.Leber in the Issue comments. The null-coalesce operator has been changed to a short-hand ternary.