Fixes wrong component ID on insert from widget library

(Issue reported and worked on by Russ)