minor tweak to prevent var from being undefined on db read fail

Change-Id: I245b9222084e639120a546d391f3f9e076440761