Fixed build failure in fx_root_example when build with JDK7. Binding method 'isEmpty' isn't available in JDK7.