Add validation to add level to check if is integer

Using Monolog addRecord I was passing a level wrongly defined as array, to avoid an  

```
Illegal offset type in isset or empty

/home/www/monolog/src/Monolog/Logger.php:340
```

I think is good idea the getLevelName check if the level passed is integer.

I added one test to ensure the code is working as expected.