check for empty slots' valid NULL pointer, fdo#79441

Change-Id: Ie81b8b00c1ab8776086bddeb7464bb7809914bf8