Raise invalid response if no documents selected