Fixed bug where paste in inline mode would produce an exception if the contents was pasted inside non overflow element.