Change assumptions about setting property with bad value - this is user-recoverable.
Fix warnings reported by PMD.