Stylesheet logic update

Added a check to see if the stylesheet object passed in has an `href` property