Ignore `NA` values

This change was not obvious by just editing the `scales` package. Rather, when I tried using my edits with `ggplot2`, it turns out that `NA`s are created on the lower and upper bounds so this function needs to gracefully handle `NA`s.