made homepage not crash with missing or malformed pids; Fixes #172