catch TypeError as well to prevent empty/missing field causing error.

fixes #4