fix js error in media manager preview
Merge pull request #1201 from landor/mediamanagerpreview

fix js error in media manager preview