fdo75996 Check search result for bookmark undo

This is quite probably not the correct fix, but it - at least -
stops LO from crashing when undoing bookmark changes.

Has to be tested to ensure LO actually correctly undoes the
bookmark change.

Change-Id: Id482943161079cf8a09799da9e67f4f4f4efb7e0
fdo#83753: consider JAVA_HOME and PATH when selecting JRE

adapted algorithm that selects the Java runtime to be used so that
Java installations associated with the JAVA_HOME and PATH
environment variables are preferred over others

Java installations are now analysed in the following order:
* installation that the JAVA_HOME environment
    variable refers to (if it is set)
* Java installations in PATH
* other Java installation (algorithm that was used before)

Change-Id: I3a3ade25322def0c0432b369848f13a6b82034a1

Conflicts:

	include/jvmfwk/framework.h
	jvmfwk/source/framework.cxx
i#101283 Fix collapsed bookmark handling

Correctly position the insert cursor in the case of a collapsed
bookmark.

Change-Id: I46707ab0e019aec1050864c9cb404a834e9a67fe