Catch null pointer exceptions for empty media lists