Fix checking for mandatory parameters not provided