Fix `org-insert-heading' at buffer boundaries