Thanks for the report, I think I tracked it down to a rare case where a biter hive that was just generated by the map generator was marked as 'under attack', and then had the error with the plan. I am hoping 0.6.1 fixes it, let me know if you encounter it again.