Fix for deprecated function use and handling of WP_Error

An issue with WP_Error handling for the requests was raised here: http://themeforest.net/forums/thread/wp_error-as-array-in/94738

Also, get_themes() was deprecated in WordPress 3.4.