Allow 'Extend Title' to work without being at the end of a file.

Currently it only works if the section is the last line in the file. It is more useful if it could be used for any title created anywhere in the file.
Display tooltip when used in the wrong context.

Previously would return a standard error code resulting in an error dialog.