Avoid a notice by casting `$args['rewrite']` to `array()` before adding a `slug` property and running `array_merge()`.

Fixes #23668.



git-svn-id: https://develop.svn.wordpress.org/trunk@25351 602fd350-edb4-49c9-b593-d223f7449a82