Modified to return 400 error code when activity data is not found. (refs #3647)