added check for  profile['parameters'] having value of None