Follow-up Ic04c7c8ad: Check if whitelist is set before assigning

Fix for PHP notice for Beta Labs' benefit.

Change-Id: I72b10672625739c6feadd5518096a543fdaa0064