fixed parsing of null media elements, #88, closes ropensci/spocc#68