Fixed get_current_theme deprecated php notice

Added a check for wp_get_theme since get_current_theme is already
deprecated in WP