Update ModelLoadingAdapter.java

Fixing off by one error that was causing model to always be null.
Merge pull request #230 from rinsley/patch-1

Update ModelLoadingAdapter.java