Updated BuddyPress compatibility fix.
There was an error in my previous code that caused legit 404 pages to return an empty postloop.
Additionally, I've moved the method call to within the PagelinesPage::type() method, utilizing its return value in conjuction with the is_404() function call.