Which case does this catch? It seems like the only way for the template location to be empty is if the second argument is both present and empty, in which case setting it to the second argument shouldn't have any impact.