Fix code regression of checkbootparam