check to see if stylesheet is loaded before loading

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