Bug fix to core resource getDomNode() and related fns