Removed check for null model

Signed-off-by: bhill2 <bjsrhill@gmail.com>
Added new test for index method passing null name value.

Signed-off-by: bhill2 <bjsrhill@gmail.com>