Bugfix for CakePHP < 2.4.2

Fixes #1