Fixed conditional for displaying URL snippet

Fixed the conditional for displaying the URL snippet so that $slug is the post_name (if it exists), or else it is auto-generated by sanitizing the post's title (if post_name does not exist).