Updated Bottle to always return valid JSON