fix profile issue when problem is null

--HG--
branch : java
application.rb.SAMPLE MUST contain new.js
what I said in @8d1e39d548bf is wrong

--HG--
branch : java
merge from java-bm, fix profile issue and modify application.rb.SAMPLE

--HG--
branch : algo