Make the verify_connection handler Rails4 safe