Mortgage payments are bundled into securities called RMBS. By shorting these securities, you are not shorting the mortgage company, but the assets themselves (the mortgage receivables).
Yup, best way to think about them are as bonds in which the credit rating is determined by the underlying asset quality rather than the company itself.