[frontend] Set flash.now for gateway errors in CheckoutController

Fixes #4034