Improved generateResponse() validation handling.