Add some sanity check in results to prevent crashes

Ref #11318
Make sure the result is a list of exactly 8 as that’s what is expected in followup code.

Fixes #11318