httpserver: add missing stub for java_api::is_valid()

It is needed to build the host version.

Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>