Added another assertion for passing a newly created parameter to hasParameter().