Fix support for local custom configurations

Small fixes to allow support for local HTMLPurifier custom
configurations.