Only match stylesheet link nodes

If you have other link nodes (RSS feeds, favicons, etc), they will break with undefined index errors. This patch adds additional test nodes and forces a check for the required 'rel' attribute to be 'stylesheet'.