Fix ICE generating drop glue for `Box<str>`

Closes issue #17734

r? @nick29581 
`str` is a built-in type (and doesn't itself have a destructor), do you have a cross-platform way to do the check you want?