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`.