Check focus AND anchor node for preventEmptyNode()

Also Improved CSS for image caption