Fix type error

Introducing `-when-let` to `flycheck-fix-error-filename` broke the
return value of this function, because it would return nil now for
errors without filenames.

Fix this by moving the return value to the top-level of the function.

Regression from 89ed9a2.