Correctly set default profiling state to NONE, fix IllegalAccessException.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>