Use sanity checking to prevent a possible overflow with invalid data being given by the pool for difficulty as reported by luke-Jr.