Fixed invalid error log being displayed when no valid lock error was found