mod_ssml: some fixes for maintainability and robustness