WEB 1016: Unicorns got stuck with a nil alternate database connection
Use self. for local writer and make exception tolerant of nil @connection_set_caller
Merge branch 'ruby2/nil_connection_detector' into invoca-3.2.17