Throwing errors correctly now Ref #4000

Missing component threw misleading errors.