Fixed NPE when creating a media session from a series