Made changes to resolve comments by Robin:

Log messages outside of check to see if the feature is enabled.
Suppress RDFa if RDFa is not enabled.
Improved some logic.