* lisp/org.el (org-tree-to-indirect-buffer): Consider scenario when `org-end-of-subtree' with 't second arg moves to `point-max' at the end of an empty headline. We do not need to move back the point then. Fixes https://orgmode.org/list/CA+AFVDUF3RzA-mnoAp8yFv-bppoYJfJo=Wa8qmNQhV-tfHHB+w@mail.gmail.com