Update sub to not break when str is undefined

For development reasons, I had a model without destroy defined, but I was calling `destroy()` on my test, canjs was breaking when calling sub with `str = undefined`.
Merge pull request #365 from cabello/patch-1

Update sub to not break when str is undefined