Improving the function "extractStylesheets"

Attempts to remove the query part of href if it's not an url (href://...)