MINOR LeftAndMain::getRecord check $ClassName before use

While the check for `$classname` was done in the first conditional, it was left out of the other two, leading to potential issues when an invalid ID was given, instead of the expected `false`.