Fix crash when action_metadata is None
Fix crash when action_metadata is None

Change-Id: I8be314e68e9ca47221e9692257c0fbbfae1d73b4

Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server