On the robustness of functional equations