Only add popup buttons when ajax request does not fail

Fixes part of mapbender/mapbender#85