Fix null request.params. Closes #1324.