Condition fixed for logging error message

Fixed the condition for logging the error message in case of absence of key in plist file. I hope that helps.