More explicit fix for #18 as per splint advice.
Following #16, it's now plausible for this function to fail.