Fixes #5064

Check for $params['url'] to be set before assigning
@Oxicode this is for CakePHP 1.3.2, which must support PHP4, and thus you cannot use the short ternary syntax.