Proposed patch

Instead of duplicating the sendMessageResponseIfNeeded here as well on line 106, you could simply call this before line 101 for both the cases.