Fixed typos and formatting errors.
Properly handle out of bounds indices in pman filter.

I'm not sure if this will come up, but better safe than sorry. The
correct behavior is to NOT show a file as selectable if it causes an
out of bounds error.
Made try/catch block formatting consistent.