Prevent infinite looping when slug is an empty string.