AJCORE-1215: Fix issue found using static analysis tool
AJCORE-1215: Fix issue found using static analysis tool

Change-Id: Ia27a5d59925eaccf0a5955bb385583f3607773fb
Signed-off-by: Inga Stotland <9a71b5a5f28f1caccc4f98f6f5c70725789b4bf4@qce.qualcomm.com>

cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core