Change assertion to parsing error.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Merge pull request #11 from pauldu/sctx-1596

Change assertion to parsing error.

Approved-by: Ben Chalmers <ben.chalmers@citrix.com>