Fix EZP-22974: When I create a new Image I get Error: eZDir::recursiveDelete

Possible fix for

#### EZP-22974 - 22974: When I create a new Image I get Error: eZDir::recursiveDelete

If you create a new image, with page redirect enabled, you'll get the following error

```
Error: eZDir::recursiveDelete 	Jun 02 2014 15:13:44
The path: var/ezwebin_site/cache/template-block/subtree/1/cache is not a folder
```
Coding standard fix on the if(), or has that changed?