Fixed conditional for displaying URL snippet

Fixed the conditional for displaying the URL snippet so the $slug is auto-generated by sanitizing the post's title if the post's post_name field is not populated.