fixed issue with 'model' routing to view when 'null' found