Fix one failing test case

<h4>Summary</h4>

When an exception is thrown the first time an element is created, the exception should be thrown so that the error can be notified.

This submission makes the change to throw the exception.

@Benglin 
PTAL