fixes #30 by wrapping property access in a try