Fix issue #101

Code to fix issue #101. 
Adds a check for the existence of wp_get_theme() before calling it.