Add check for changing the post thumbnail over AJAX