Improve condition in pf::is_max_reg_nodes_reached

$category or $category_id must not only be defined, but must also not be
0 or an empty string.