Add guard to Resources.php

Prevent direct calling of this file, just as we do in many other
places. Resources.php threw a fatal when called directly.

Change-Id: I10f5c013e81beaeb48d48e3eeaf1041d7236e9e9
Merge "Add guard to Resources.php"