Fixes regression bug of form submission response not being displayed
(cherry picked from commit 99c75a8)