Fix error when updating.

Fixes an error reported here: http://notes.envato.com/general/envato-wordpress-toolkit/ that occurs during the backup process of a theme update.