NPE fix for test
from discusstion on Aura Help: https://gus.my.salesforce.com/0D5B0000001Gq6q
code review: https://code-collab.soma.salesforce.com/go?page=ReviewDisplay&reviewid=612619
@rev gtorres@
@bug W-2259796@
Merging origin/lin/master-pending/NPEtestFix into master