Resolved Issue #1

Adjusted renderAssets() function so that the $asset object and
$last_modified variable would only be created if needed.