Fixed potential problem with IndexError in QuerySet.first()

The current implementation may suppress internal IndexError exceptions.