Fixes #13551. Guard against illegal data access by undefined elem-owner

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>