settings: fix error not shown when ajax request fails