Added earthquake name to quakeml

Separate the assignment from the test, to make it clearer what is happening:

```
$name = ...
if ($name) {
```