Update nibabel/analyze.py

Now the sanity check in to_file_map should work.
The sanity check was needed since the method now uses the user set slope and inter when writing the header.
Only catch is: Does the user want to save a bunch of NaN or Inf? If that's so to_file_map will raise a ValueError...