only add popup buttons when ajax request does not fail
Merge pull request #1 from mapbender/hotfix/85

Only add popup buttons when ajax request does not fail