Please add a test case and issue a pull request. The context above was not explanatory enough as to why that nil check existed.