Noticed this when I was building an Argonev while being attacked. If the building is still waiting on research, the AI tries to attack it and fails because it doesn't exist yet. The missiles just whizz straight through.
I imagine the same applies to other weapons, but I didn't happen to encounter that.