Fix for #2474. Makes some of the option form elements conditionally visible only if corresponding modules are enabled.