Updated the conditions that determine when the empty response message is shown.