fixed #10

# changed return value in case no DOM is present (frameset-in-HTML issue)