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.
Merge pull request #2371 from tomasv/custom-devise-mailer-default-proc-fix

Fix devise sender bug with custom devise mailers.