Issue #2303851 by Mark Carver: Fixed Notice: Undefined index: type in theme() (line 1169).