Add sanity check in StreamComponent constructor