Fix devise sender bug with custom devise mailers.

The devise sender detection must take into account that the default
sender set in the custom devise mailer can be a proc.