Fixed filtering empty input parameters (fixes #38)

This change seems to be radical but in fact the new condition differs from the old one because it does not return ``true`` for neither ``'0'`` nor ``0.0`` as the old one did. In all other cases it behaves exactly the same way.