Remove image from HTML editor if attachment is not successful
More eloquent way of getting Boolean value
Fix html checkbox status if editor cannot be loaded