Small bugfix regarding error_get_last()