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