Fixed /lock command throwing more than one error when trying to lock an
invalid block