Fix error in importing keyframes from clipboard

Related to #554
1 job for master in 18 minutes and 6 seconds (queued for 23 minutes and 44 seconds)