Fix javadoc bug for java version prior to 8.

This option is unsuported with javadoc compiler prior to 8 and make the task failed.