Don't error if Rails isn't defined.

This was causing errors when Rails wasn't defined:
`Uninitialized constant NotifierException::Notifier::Rails`

The easiest fix seems to be to check that Rails is defined before trying to check if it responds to backtrace_cleaner.