{gem,sinatra,rack}: fix callback_with_error