Add 2nd argument to insertBefore() in expandThumbnail

Using insertBefore() with 1 argument will throw TypeErrors in Chrome 38 - 2nd argument
has to be null instead of undefined.