Added handling for empty action.

Signed-off-by: Nigel <Nigel@192.168.38.1>