Saving function without having made a change to it returns error

Saving function without having made a change to it returns error

The following function was previously saved in Creator:

  1. string otherrecordmanipulations.CountEntityProfiles(string EName, string PName)
  2. {
  3.     countNumber = count(frmSearch_Profile[((((Player_Entity.contains(input.EName) && Player.contains(input.PName)) && !Player.contains(input.PName + ":")) && Status == "Active") && Player_Status != "Passive")]);
  4.     if (countNumber  ==  0)
  5.     {
  6.         return "none";
  7.     }
  8.     else
  9.     {
  10.         return (countNumber).toString();
  11.     }
  12. }

If I click 'Save Script' (without changing anything) I get the error "null".

Please advise.

Regards,
Filip