Added a check for existence of wp_get_theme()

Adding a check for existence of wp_get_theme() to add support for
Wordpress versions older than 3.4.