Throw exception rather then doing an assert as this is input data and we have a test expecting an exception

Change-Id: Ie48f6f984d5e3254484effac5230828318cd2ad2