You're right. Core should never return a non-table, but its still a valid point. Will fix shortly.