[#3028] Fixed a bug where null media could be saved in an array and was not being detected as null.