Partial fix for issue #34  (500 error):  don't attemnpt to access type link for non-existent type
Its not clear if this is sufficient, but at least we don't get the ugly error message now.