The other solution would be to improve the star detection algorithm so that it isn't fooled by planetary nebulae. It could for example try to cull outliers from the set of detected stars. If there's a hundred stars with a HFR of 2 pixels and one with a HFR on 40, it's a fairly obvious outlier.