CLOUDIFY-2514 check for key existance before extraction
CLOUDIFY-2514 added more logs