Fix "rcmail is undefined" error in HTML attachment preview - regression
from commit d30460ad2fc0f78ce44d474fa2c466d660596d27, small improvements