Check if masonry initialized for the element before call 'append' or 'resize'