Correct handling of empty reactions.

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>