fix error in API

(groups are not allowed in avoid_nodes in register_generate_plant)
stop nil crash
Merge remote-tracking branch 'upstream/master'