Handled the potential of a null value being placed into value in the AddParameter method