[backend] fix buildhistory query with duration time
[webui] accept extra error handling in code check