log error when no dom is available