fix null pointer exception on timeout

The method poll (of the blocking queue) will return null if there is no element and the timeout interval has expired. So our timeout reply code is only set if an interrupted exception is raised and not if a timeout occurs, too.