2.4.1 compatibility

See: cakephp/cakephp@0b46b042b9deda463d45624bb2f86e4ba5319279