Throw meaningful exception

Follow up on https://github.com/cakephp/cakephp/pull/3269