Execute afterInsert only when inserting
Execute afterInsert only when inserting

Fixes Bug introduced with 59a49cbd7e5b940e087556503ef1a7b416a5ad3c

koala-framework/koala-framework,koala-framework/koala-framework