Update getCssRule to exit on empty styles tag.
Test unit added.