Fixed improper edd_currency_filter() closing in heartbeat_received()

Fix for issue #1643