Fixed #252

* Adds an if-clause to check if the current request actually exists