Prevent wif_to_key from crashing with invalid input (should fix problem from a user's crash report)