No action or counterclaim shall be maintained by any person rendering polygraph examiner services as defined by this chapter in any court in this state with respect to any agreement or service for which a license is required by this chapter, to recover the agreed price or any compensation under the agreement or for services for which a license is required by this chapter without alleging and proving that the person had a valid license at the time of making the agreement or performing the services.