Fix VariableTable#find_variable_entry behavior if current scope is block

If current scope is block, the method was looking for all outer scope
variables even if the direct outer scope is not block.