Avoid potential NPE when looking for opting and jpegtran in the system's path.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>
Added JavaDoc

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>