fop: fix broken JAVA_HOME when using oracle's jdk

see https://issues.apache.org/jira/browse/FOP-2356

Closes #27410.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>