[ticket/13229] Fix overloading memberlist with redundant SQL queries

<a href="https://tracker.phpbb.com/browse/PHPBB3-13229">PHPBB3-13229</a>.
Could also just use:
`$can_receive_pm = $check_can_receive_pm && (`