frontend: Make lib copying in case of no input modules work as intended

164d30a32f18fea082ac216a9ee4eb68db0d3bde regression

The previous module = NULL check was always true since the loop would
only exit in that case. It was intended to be triggered only if the list
is empty though - but it didn't have any negative side-effects, just
unnecessary duplicate work.
frontend: Clean up hSetIofile()