Fix enforceStateWithTest to not result in Error in case of missing optional param

Change-Id: Ib85c301ef73e0d66baff1603b276b17e1cae3e27
1 file changed