proc: Fix leakage of fd if element lookup failed

Fixes: CID 49002
Signed-off-by: Thomas Graf <tgraf@suug.ch>