Check for crafting result to not be nil

We don't want to look for a result that doesn't exist. Resolves #2197.