CLOUDSTACK-7563: Fix potential NPE in checking answer

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>