This patch fixes the error messages when an invalid number of 'mapname' are provided for states 'present' or 'absent'.