XRENDERING-361: DefaultMacroManager#getMacro produces and catches lots of exceptions

(cherry picked from commit f2629808c710bdc8fad2308892db74157d90e228)