Recent activity fixes

Fixes the errors in the recent activity module found after improving the error reporting.