Only set editor options if there are options

Otherwise there is an error with `jQuery.each`, because it does not work with `undefined`.