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
And auto-removed trailing spaces