check to see if stylesheet is loaded before loading

applying fedwiki/wiki-plugin-code@ee0f531 here to keep the two versions
in step.