Move DL tags within the $titles conditional
Perform a sanity check at the beginning of render_plain_text()
Fix a bug in the 404 function

Testing revealed a missing parenthesis.