Fix crash on composition paste

Authored by mardelle on Mar 14 2019, 10:43 PM.