media plugins: bug fixing: prevent 'undifined variable'