Ignore empty id strings for export and massActions

This allows having the selectboxes with an empty string option instead of -1, as an empty value is the default behavior of some javascript libraries.

Some minor phpDoc fixes
Merge pull request #499 from Danez/patch-1

Ignore empty id strings for export and massActions