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

Fixes #23668.


Built from https://develop.svn.wordpress.org/trunk@25351


git-svn-id: http://core.svn.wordpress.org/trunk@25313 1a063a9b-81f0-0310-95a4-ce76da25c4cd